class CreatePurchases < ActiveRecord::Migration
  def change
    create_table :purchases do |t|
      t.string :client_id
      t.references :paymeny_method
      t.references :delivery_address
      t.references :status

      t.timestamps
    end
    add_index :purchases, :paymeny_method_id
    add_index :purchases, :delivery_address_id
    add_index :purchases, :status_id
  end
end
